/**
 * Copyright (c) 2024 wangshuangbao personal. All rights reserved.
 */
package com.wang.abstracts;

import com.wang.interfaces.Msg;

import static com.wang.utils.ClassUtil.getActualTypeArgument;

/**
 * @Author wsb
 * @Description 抽象数据操作类
 */
public abstract class AbstractDao<T extends Msg> {

    protected final Class<Msg> clazz;

    /**
     * 获取泛型参数的实际类型
     */
    public AbstractDao() {
        clazz = getActualTypeArgument(this.getClass());
    }
}
